package com.example.demo.mapper;

import com.example.demo.entity.SysTaskLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

/**
* @author Lenovo
* @description 针对表【t_task_log】的数据库操作Mapper
* @createDate 2024-02-04 15:50:11
* @Entity com.example.demo.entity.TTaskLog
*/
@Mapper
@Repository
public interface SysTaskLogMapper extends BaseMapper<SysTaskLog> {
    @Select("select * from t_task_log where id = (select max(id) from t_task_log);")
    SysTaskLog getNewest();

}




